package com.java.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.java.model.system.SysRole;
import com.java.vo.system.AssginRoleVo;
import com.java.vo.system.SysRoleQueryVo;
import com.java.common.utils.R;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {

    List<SysRole> findAll();


    R pageSelectByLike(IPage<SysRole> iPage, SysRoleQueryVo sysRoleQueryVo);

    R findRoleById(Long userId);

    /**
     * 分配角色
     * @param assginRoleVo
     * @return
     */
    R doAssign(AssginRoleVo assginRoleVo);
}
